#if !defined(AFX_KTRACELOG_H__B2A3536F_4F40_4E53_9BD2_601B5FE5EFA4__INCLUDED_)
#define AFX_KTRACELOG_H__B2A3536F_4F40_4E53_9BD2_601B5FE5EFA4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// KTraceLog.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// KTraceLog dialog
#include "resource.h"
#include "ColorListBox.h"
class KTraceLog : public CDialog
{
		DECLARE_DYNCREATE(KTraceLog)

// Construction
public:
	KTraceLog();   // standard constructor
	void AddTraceLine(int nLevel, LPCTSTR pstrFormat, ...);
// Dialog Data
	//{{AFX_DATA(KTraceLog)
	enum { IDD = IDD_PROPPAGE_TRACE };
	CColorListBox	m_TraceList;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(KTraceLog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(KTraceLog)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	LRESULT OnAddTraceLine(WPARAM, LPARAM);
	DECLARE_MESSAGE_MAP()
			CObList m_LogQueue;
	CCriticalSection m_QueueLock;

	class CLogMsg : public CObject
	{
	public:
		CLogMsg() {};
		virtual ~CLogMsg() 
		{
		};
	
		SYSTEMTIME m_sysTime;
		int		m_nLevel;
		CString m_strText;
	};
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_KTRACELOG_H__B2A3536F_4F40_4E53_9BD2_601B5FE5EFA4__INCLUDED_)
